/*
 * @Description:
 * @Version: 1.0.0
 * @Autor: zhou
 * @Date: 2022-04-21 08:15:29
 * @LastEditors: ljz
 * @LastEditTime: 2022-07-06 15:45:17
 */
import request from "@/utils/request";
import { service3 } from "@/utils/request";

// 1.[政法委] 页面===============================
// 宣传信息 (视频, 文字, 人员, 轮播图)
export function politicsData(params) {
    return request({
        url: "/zz/datav/politics/politics_data",
        method: "get",
        isToken: false,
        params: params,
    });
}
// 工作动态
export function dynamicWork(params) {
    return request({
        url: "/api/v1/zz/datav/politics/dynamic_work",
        method: "get",
        isToken: false,
        params: params,
    });
}

// 园区: 数据总览: 获取疫情数据
// export function getEpidemic(parmas) {
//     return service3({
//         url: "/fy/get",
//         method: "get",
//     });
// }
export function getEpidemic(params) {
    return request({
        url: "/zz/datav/park_info/get_epidemic",
        method: "get",
        isToken: false,
        params: params,
    });
}
export function plansList(params) {
    return request({
        url: "zz/datav/risk/plans_list",
        method: "get",
        isToken: false,
        params: params,
    });
}
export function getPlan(params) {
    return request({
        url: "zz/datav/risk/get_plan",
        method: "get",
        isToken: false,
        params: params,
    });
}

export function visitSearch(data) {
    return request({
        url: "zz/datav/visit/search",
        method: "post",
        isToken: false,
        data,
    });
}

// 危险源企业列表
export function getDangerCompanyList(params) {
    return request({
        url: "zz/datav/park_info/hazard_company_list",
        method: "get",
        isToken: false,
        params,
    });
}

//危险源企业详情
export function getHazardCompanyDetail(company_id) {
    return request({
        url: "/zz/datav/park_info/hazard_company_detail",
        method: "get",
        isToken: false,
        params: {
            id: company_id,
        },
    });
}

// 防爆设备列表
export function explorosionList(params) {
    return request({
        url: "zz/datav/info/explorosion_list",
        method: "get",
        isToken: false,
        params,
    });
}
// 消防设备列表
export function fireDeviceList(params) {
    return request({
        url: "zz/datav/info/fire_device_list",
        method: "get",
        isToken: false,
        params,
    });
}

// 检测数据统计
export function monitorData(params) {
    return request({
        url: "/zz/datav/park_info/monitor_data_statistical",
        method: "get",
        isToken: false,
        params,
    });
}
// 村镇统计
export function communityData(params) {
    return request({
        url: "/zz/datav/park_info/community_statistical",
        method: "get",
        isToken: false,
        params,
    });
}

// 各镇片网格占比
export function statisticalAna1(params) {
    return request({
        url: "/zz/datav/park_info/statistical_analysis1",
        method: "get",
        isToken: false,
        params,
    });
}
// 片网格top10
export function statisticalAna2(params) {
    return request({
        url: "/zz/datav/park_info/statistical_analysis2",
        method: "get",
        isToken: false,
        params,
    });
}
// 各镇党支部占比
export function statisticalAna3(params) {
    return request({
        url: "/zz/datav/park_info/statistical_analysis3",
        method: "get",
        isToken: false,
        params,
    });
}
